﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 多态2
{
    class Shape
    {//数据成员
        protected string color;
 
     
        public   string Color { get => color; set => color = value; }
       
        

        public Shape(string color)
        {
            this.color = color;

        }
        public virtual void GetArea()
        {

        }

    }
}
